package beerAir;

import java.util.ArrayList;

public class Booking {

	private int idBooking;
	private ArrayList<Ticket> ticketList=new ArrayList<Ticket>();
	private float total=0.0f;

	public Booking() {
		super();
	}

	public float calcTotal(ArrayList<Ticket> ticketList){
		for(int i=0; i<ticketList.size(); i++){
			total += ticketList.get(i).getSubTotal();
		}
		return total;
	}

	public int getIdBooking() {
		return idBooking;
	}

	public void setIdBooking(int idBooking) {
		this.idBooking = idBooking;
	}

	public ArrayList<Ticket> getTicketList() {
		return ticketList;
	}

	public void setTicketList(ArrayList<Ticket> ticketList) {
		this.ticketList = ticketList;
	}

	public float getTotal() {
		return total;
	}

}